[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Pablo Rodriguez via ntg-context
w}{\externalfigure[cow][ width=3cm, %width=2cm, ]} \placefigure[inleft]{A Cow}{\externalfigure[cow][width=2cm]} \placefigure[inright]{A Cow}{\externalfigure[cow][width=2cm]} \stoptext Just in cas

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
> distance=0.2em, > alternative=serried, > ] At least, it would be better not to include a definition inside content that seems to (or may) be grouped with braces. BTW, it is exactly the same definition as the one included before. It isn’t just to be removed in minimal samples, your

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
>   ] At least, it would be better not to include a definition inside content that seems to (or may) be grouped with braces. BTW, it is exactly the same definition as the one included before. It isn’t just to be removed in minimal samples, your final code doesn’t need the duplicated comma

[NTG-context] Struggling with the distance and right margin text

2024-03-15 Thread Ursula Hermann
, alternative=serried, ] \inright{3.2.22} {\bf Theorem 3.2.22 (Rechenregeln für Quantoren)}. Seien \m P(\m x)und My problem here is that there is not the same distance between the the text and the margintext . And now the margintext should be on the right side. So maybe someone could help me please

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
apersize[MyBook][A4] %Would print MyBook-size pages on A4 paper > \setupbodyfont[Times New Roman,12.55pt] > \definemargindata [MyInMargin][inright] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] > \defineenumeration > [theorem] > [

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
pages on A4 paper \setupbodyfont[Times New Roman,12.55pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em

[NTG-context] Re: Text in Margin

2024-02-19 Thread Wolfgang Schuster
a custom layout with a narrow text block and a wide rightmargin area. 1. Keywords and small descriptions to emphasize some text from the textflow Use the \inright etc. commands or create your own commands based on \inright, look at the margindata mechanism for more information. 2. Figures

[NTG-context] Re: Problem with the paragraph

2023-12-18 Thread Ursula Hermann
w Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground

[NTG-context] Re: Problem with the paragraph

2023-12-15 Thread Bruce Horrocks
\setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alte

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Wolfgang Schuster
][A4] %Would print MyBook-size pages on A4 paper This doesn't work to use Times New Roman as main font, you can use     \setupbodyfont[termes] to get a times lookalike. \setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe

[NTG-context] Problem with the paragraph

2023-12-13 Thread Ursula Hermann
\setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried

[NTG-context] Colored Paragraph

2023-12-05 Thread Ursula Hermann
Dear List, i have this example: \setupbodyfont[modern,10pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.5em

[NTG-context] Re: It works after a few changes but ..

2023-11-23 Thread Ursula Hermann
Dear List, After once more a little changes this is the example I wanted, and it is perfekt: \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \defineenumeration [theorem] [ text=Theorem, title=yes

[NTG-context] Re: It works after a few changes but ..

2023-11-21 Thread Bruce Horrocks
\stoptheorem > > The spurious parentheses seem to be a side-effect of having unmatched curly > brackets in the bit that I have quoted. > > The following eliminates them: > > \definemargindata [MyInMargin][inright] > \definemarginframed[MyInMargin][topframe=on,bot

[NTG-context] Re: It works after a few changes but ..

2023-11-20 Thread Ursula Hermann
the bit that I have quoted. The following eliminates them: \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height=0.

[NTG-context] Re: It works after a few changes but ..

2023-11-18 Thread Bruce Horrocks
e-effect of having unmatched curly brackets in the bit that I have quoted. The following eliminates them: \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\

[NTG-context] It works after a few changes but ..

2023-11-17 Thread Ursula Hermann
, and also my text with the margin: \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height=0.25ex, width=7cm] \setupenumerations

[NTG-context] Re: Text and Remark

2023-11-17 Thread Ursula Hermann
Dear Bruce Yes, it was better. But i show you how it should loook: \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
{}{}, titlecommand=\groupedcommand{(}{)}, width=fit] \defineenumeration [definition] [text=Définition, number=no, style=italic] \defineenumeration [exemple] [text=Exemple, number=no, style=normal] \definemargindata[marginfigure][inright] \setupmargindata [marginfigure][command

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-13 Thread Fabrice Couvreur via ntg-context
.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > _____

Re: [NTG-context] split TABLE cells

2022-05-19 Thread Steffen Wolfrum via ntg-context
t >> \eTD >> \bTD >> Test >> \eTD >> \bTD >> Test >> \eTD >> \eTR >> \eTABLE >> \stoptext > not possible, use tabulate instead do you have a MWE? the example from https://wiki.contextgarden.net/Tabulate gives an empty page: \set

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-28 Thread Rik Kabel via ntg-context
ble glue units , pointing to the second \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright]     \startTEXpage[offset=2em]      abc\XX[xx]\par      \ref[number][xx] ·      \convertnumber{r}{1} ·      \convertnumber{R}{\ref[number][xx]}     \stopTEXpage In this case I

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-28 Thread Hans Hagen via ntg-context
ond \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright] \startTEXpage[offset=2em]  abc\XX[xx]\par  \ref[number][xx] ·  \convertnumber{r}{1} ·  \convertnumber{R}{\ref[number][xx]} \stopTEXpage In this case I am trying to display with roman numer

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
ore=,after=,alternative=inright] \startTEXpage[offset=2em]  abc\XX[xx]\par  \ref[number][xx] ·  \convertnumber{r}{1} ·  \convertnumber{R}{\ref[number][xx]} \stopTEXpage In this case I am trying to display with roman numerals the number generated in the label created thro

[NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
bel[XX]%[text=,before=,after=,alternative=inright] \startTEXpage[offset=2em]  abc\XX[xx]\par  \ref[number][xx] ·  \convertnumber{r}{1} ·  \convertnumber{R}{\ref[number][xx]} \stopTEXpage In this case I am trying to display with roman numerals the number generated in the la

Re: [NTG-context] double-sided page number placement

2021-07-12 Thread Hans Hagen
doing something wrong here? Hi Charles, I think that "inright" is what you want: \setuppagenumbering[alternative=doublesided, location=inright] \starttext \dorecurse{20}{\input knuth } \stoptext With current latest from 2021.07.10 21:51, "location=inright&

Re: [NTG-context] double-sided page number placement

2021-07-12 Thread Charles Doherty
Dear Pablo, As you suggested location=inright works for me using LMTX Hans sent me: can you put this in cont-new.mkxl and test it with options \unprotect \def\page_layouts_place_text_line_left {\hpack {\ifdim\leftedgewidth>\zeropoint \page_layouts_left_edge_element\c!righttex

Re: [NTG-context] double-sided page number placement

2021-07-11 Thread Pablo Rodriguez
re? Hi Charles, I think that "inright" is what you want: \setuppagenumbering[alternative=doublesided, location=inright] \starttext \dorecurse{20}{\input knuth } \stoptext With current latest from 2021.07.10 21:51, "location=inright" behaves as you expect using

Re: [NTG-context] definelabel and TEXpage

2021-05-21 Thread Rik Kabel
On 5/21/2021 00:16, Wolfgang Schuster wrote: Rik Kabel schrieb am 21.05.2021 um 04:31: In the following example:     \definelabel[BB][alternative=inright,headcolor=red,text=]     \startTEXpage     Where is the label?\BB     \stopTEXpage The label is not displayed if a TEXpage is used

Re: [NTG-context] definelabel and TEXpage

2021-05-20 Thread Wolfgang Schuster
Rik Kabel schrieb am 21.05.2021 um 04:31: In the following example: \definelabel[BB][alternative=inright,headcolor=red,text=] \startTEXpage Where is the label?\BB \stopTEXpage The label is not displayed if a TEXpage is used, but if the start/stop is changed to starttext

Re: [NTG-context] Color problem

2021-05-20 Thread Aditya Mahajan
AA][alternative=inright,headcolor=\HighlightColor,text=] >\definelabel[BB][alternative=inright,headcolor=red,text=] >\noheaderandfooterlines >\starttext >\hsize3cm >Is the label red?\AA > >Is the label red?\BB > >\RED

[NTG-context] Color problem

2021-05-20 Thread Rik Kabel
Consider the following example: \define \HighlightColor {red} \definehighlight[RED][color=\HighlightColor] \definelabel[AA][alternative=inright,headcolor=\HighlightColor,text=] \definelabel[BB][alternative=inright,headcolor=red,text=] \noheaderandfooterlines \starttext

[NTG-context] definelabel and TEXpage

2021-05-20 Thread Rik Kabel
In the following example: \definelabel[BB][alternative=inright,headcolor=red,text=] \startTEXpage Where is the label?\BB \stopTEXpage The label is not displayed if a TEXpage is used, but if the start/stop is changed to starttext/stoptext, all is well. Is this expected? -- Rik

Re: [NTG-context] how to with \margindata

2020-07-15 Thread Hans van der Meer
; \margindata{some macro expansions} > > You're missing the first mandatory argument, e.g. \margindata[inright]{...}. > >> I know that \margindata is typeset at a later moment than its place in the >> code suggests. The problem is that macro expansions inside the {}'s are >> ex

Re: [NTG-context] how to with \margindata

2020-07-15 Thread Wolfgang Schuster
Hans van der Meer schrieb am 15.07.2020 um 21:48: Using the following: \margindata{some macro expansions} You're missing the first mandatory argument, e.g. \margindata[inright]{...}. I know that \margindata is typeset at a later moment than its place in the code suggests. The problem

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Fabrice Couvreur
eringsetup=userdata:margintext] > > \startsetups [userdata:margintext] > \margindata > [inright] > [style={\switchtobodyfont[9pt]}, > width=\rightmarginwidth, > align={flushleft,broad}, > stack=yes] > {\startframedtext[before=,after=,offse

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Taco Hoekwater
=userdata:margintext] \startsetups [userdata:margintext] \margindata [inright] [style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}, stack=yes] {\startframedtext[before=,after=,offset=0pt,width=max,frame=off] \getinlineuserdata

Re: [NTG-context] Store images and text in the right margin

2020-07-03 Thread Fabrice Couvreur
Jul 2020 17:20:07 +0200 > Fabrice Couvreur wrote: > > Try: > > > \useMPlibrary[dum] > > > > \setuppapersize[A4] > > > > \setuplayout > > [width=12cm, > >rightmargin=5cm] > > > > \definemargindata[marginfigure][in

Re: [NTG-context] Store images and text in the right margin

2020-07-02 Thread Marco Patzer
On Thu, 2 Jul 2020 17:20:07 +0200 Fabrice Couvreur wrote: Try: > \useMPlibrary[dum] > > \setuppapersize[A4] > > \setuplayout > [width=12cm, >rightmargin=5cm] > > \definemargindata[marginfigure][inright] > \setupmargindata [marginfigure][command=\vbox,a

[NTG-context] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
in it. The result is not as expected because the graphic overflows on the text. The course will be written in A4 format with an 11 pts font. Thanks for your help. Fabrice \useMPlibrary[dum] \setuppapersize[A4] \setuplayout [width=12cm, rightmargin=5cm] \definemargindata[marginfigure][inright

Re: [NTG-context] conditional for undefined references

2020-03-29 Thread Wolfgang Schuster
because in MkII it was able to get a small message in the margins about unknown references. What you can do is to use the \doifelsereferencefound command to check if the requested reference exists before you get the page number etc. \starttext Take a look at \doifelsereferencefound{unknown:1}

[NTG-context] Extend figure to margin, or extend figure from margin to text

2019-05-29 Thread Zhichu
as the figure and the part in the margin should not affect other marginal notes: \showframe \starttext Hello\inright{Very very very long test notes.}, world! \startplacefigure [reference=fig:whatever, title={Test figure.}, location=outer] \hbox{% \framed

Re: [NTG-context] several blocks of text in the margin

2019-05-01 Thread Henning Hraban Ramm
\setupmargindata[inright][stack=continue] might help, but the mechanism changed within the last few months: while it previously worked automagically in most cases, I had to shift several margin notes in my project using \inmargin[voffset=...]{...} Greetlings, Hraban --- https://www.fiee.net

[NTG-context] several blocks of text in the margin

2019-04-27 Thread Fabrice Couvreur
=margintext] \defineuserdataalternative [margintext] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext] \margindata [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Exemple

Re: [NTG-context] Text in the margin

2019-04-10 Thread Wolfgang Schuster
] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext]   \margindata     [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}]     {{\bf Exemple — }\getinlineuserdata} \stopsetups \starttext \startuserdata

[NTG-context] Text in the margin

2019-04-10 Thread Fabrice Couvreur
] \startsetups [userdata:margintext] \margindata [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Exemple — }\getinlineuserdata} \stopsetups \starttext \startuserdata[margintext] \input ward \stopuserdata

Re: [NTG-context] Compilation fails on 20190210 beta with Unidentified user defined whatsit

2019-02-12 Thread Hans Hagen
On 2/11/2019 7:44 PM, Rik Kabel wrote: \defineenumeration[ID] [before=\dontleavehmode, alternative=inright] \starttext \ID[id1]This is only a test. \stoptext sorry, i'll fix it (upload later today) Hans

Re: [NTG-context] Compilation fails on 20190210 beta with Unidentified user defined whatsit

2019-02-11 Thread Wolfgang Schuster
Rik Kabel schrieb am 11.02.19 um 19:44: The following works well with previous versions and fails on the 20190210 beta. \defineenumeration[ID] [before=\dontleavehmode, alternative=inright] \starttext \ID[id1]This is only a test. \stoptext The problem

[NTG-context] Compilation fails on 20190210 beta with Unidentified user defined whatsit

2019-02-11 Thread Rik Kabel
The following works well with previous versions and fails on the 20190210 beta. \defineenumeration[ID] [before=\dontleavehmode, alternative=inright] \starttext \ID[id1]This is only a test. \stoptext The problem appears to be associated with the inright alternative

[NTG-context] Unexpected in XML output

2018-07-14 Thread Rik Kabel
Taa aaa aa a aa aaa aa aa aa. Taa a\inleft{>}, a aa a aa a aa aaa a aaa, \inright{<} a aa a aa, aaa aa aaa

Re: [NTG-context] Labels and Enumerations

2018-01-16 Thread Hans Hagen
On 1/15/2018 10:15 PM, Rik Kabel wrote: Hans, Even with the local scope, I cannot get multiple enumerations in a paragraph at the same time as I get inright labels in footnotes. The footnote enumerations appear only with display=yes, but that causes paragraph breaks after each enumeration

Re: [NTG-context] Labels and Enumerations

2018-01-15 Thread Rik Kabel
Hans, Even with the local scope, I cannot get multiple enumerations in a paragraph at the same time as I get inright labels in footnotes. The footnote enumerations appear only with display=yes, but that causes paragraph breaks after each enumeration. The default alignment works, but I need

Re: [NTG-context] Labels and Enumerations

2018-01-15 Thread Hans Hagen
is added to \footnotes, the enumeration index appears there, unlike labels, where it does not appear. use \startsetups[constructionrenderings:mylabel] \dontleavehmode \inright[scope=local]{\flushconstructionheadbox} \stopsetups also, an enumeration wants a paragraph as it needs to handle

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Rik Kabel
[constructionrenderings:mylabel]   \dontleavehmode   \inright{\flushconstructionheadbox} \stopsetups \defineenumeration   [one]   [alternative=mylabel,    display=no,    before=,    after=] \definenote   [endnote] \setupnotation   [endnote]    [way=bytext,     location

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Rik Kabel
. \defineconstructionalternative   [mylabel]   [renderingsetup=constructionrenderings:mylabel,    width=] \startsetups[constructionrenderings:mylabel]     \inright{\dontleavehmode\flushconstructionheadbox} \stopsetups \defineenumeration[two][alternative=mylabel, % use mylabel

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID     \setupindenting[yes,small

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID \setupindenting[yes,small] \definelabel   [ID][ %\defineenumeration[ID

Re: [NTG-context] Problem with definelabel and footnotes

2018-01-12 Thread Rik Kabel
, but I cannot get a comparable result to what I have with definelabel. Is this a bug in the footnote typesetting, or a problem with my expectations? \setuppapersize[A6] \definelabel   [Qi][text=,alternative=inright,headcolor=red] \definenote    [pagenote] \setupnotation

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when

Re: [NTG-context] Problems with heads using margintext alternative

2017-07-30 Thread Hans Hagen
jojomayer \blank \inmargin{marginal\\data\blank}\input jojomayer \inleft{L}test \inright{R}test \definemargindata[Xinleft] [width=3cm,location=left, align=flushleft] \definemargindata[Xinright][width=3cm,location=right,align=flushright] \Xinleft {L}test \Xinright{R

Re: [NTG-context] Problems with heads using margintext alternative

2017-07-29 Thread Rik
\blank \inright{marg}\startparagraph\input jojomayer\stopparagraph \blank \inouter{marg}\startparagraph\input jojomayer\stopparagraph \ininner{marg}\startparagraph\input jojomayer\stopparagraph \blank \inmargin{marg}\startparagraph\input jojomayer\stopparagraph \blank

Re: [NTG-context] Problems with heads using margintext alternative

2017-07-29 Thread Pablo Rodriguez
\startparagraph and sectioning commands (other margindata are fine): \setuphead [chapter] [alternative=margintext] \starttext \chapter{Chapter} \startparagraph\input jojomayer\stopparagraph \blank \inleft{marg}\startparagraph\input jojomayer\stopparagraph \bla

Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-23 Thread Jean-Pierre Delange
ote#1#2{#1\cNote{#1] #2}} \def\DNote#1#2{#1\dNote{#1] #2}} \setupalign[hz, hanging] \setuptolerance[strict] \setupnotes[spacebefore=4*line] \setupnotes[spaceinbetween=] % \setuplinenumbering[step=5, location=inright, distance=1ex,align=center, width=0.5em] \definemargin

Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-22 Thread Hans Hagen
ote{#1] #2}} \def\CNote#1#2{#1\cNote{#1] #2}} \def\DNote#1#2{#1\dNote{#1] #2}} \setupalign[hz, hanging] \setuptolerance[strict] \setupnotes[spacebefore=4*line] \setupnotes[spaceinbetween=] % \setuplinenumbering[step=5, location=inright, distance=1ex,align=center, w

[NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-18 Thread Jean-Pierre Delange
] \def\ANote#1#2{#1\aNote{#1] #2}} \def\BNote#1#2{#1\bNote{#1] #2}} \def\CNote#1#2{#1\cNote{#1] #2}} \def\DNote#1#2{#1\dNote{#1] #2}} \setupalign[hz, hanging] \setuptolerance[strict] \setuplinenumbering[step=5, location=inright, distance=1ex, align=center, w

[NTG-context] Side effect of leftmargin for formulas on \inright

2016-10-19 Thread Florian Leupold
Dear list, I have noticed that the key leftmargin for formulas has a side effect on \inright, see MWE below. Assuming that is unwanted behavior, is there a way to circumvent the horizontal misplacement of the margin note? Thanks and best regards, Florian MWE: \setupformulas[align=right

Re: [NTG-context] annotated text: main text in narrower text, annotations on the right

2016-10-02 Thread MF
Thank you, Wolfgang and Jean-Pierre! I've modified your example and now it resembles what I was looking for. Now I can use \inright to get annotations on the right of the main text, but inside the width of the normal text. The annotations are aligned to the line they occur in the main text

Re: [NTG-context] annotated text: main text in narrower text, annotations on the right

2016-09-30 Thread Jean-Pierre Delange
                 | You can do it with setuplayout and a wider right margin, using \inright for annotations, but it's for the whole document or a whole page. Is that possibile only for a section of text inside a page? Best regards, Massi

Re: [NTG-context] annotated text: main text in narrower text, annotations on the right

2016-09-30 Thread Wolfgang Schuster
e main text flowing | annotation | |in the left column... | | You can do it with setuplayout and a wider right margin, using \inright for annotations, but it's for the whole document or a whole page. Is that possibile only for a section of text

Re: [NTG-context] annotated text: main text in narrower text, annotations on the right

2016-09-29 Thread mf
the left column...           |                          | You can do it with setuplayout and a wider right margin, using \inright for annotations, but it's for the whole document or a whole page. Is that possibile only for a section of text inside a page? Best

[NTG-context] \defineparagraphs

2016-07-08 Thread kitz
attached. Thanks! John \defineparagraphs[Mypar][n=2] \setupparagraphs[Mypar][1][width=0.5\textwidth] % label subquestions (a, b, c, etc) with answerblanks \defineconversionset[myitemize][n,a][n] % define the answerblank in right margin \define\ansblank {\inright{\simplealignedbox{2em

Re: [NTG-context] Italic in margins and footntes

2016-06-30 Thread Jean-Pierre Delange
] > \setuplanguage[fr] > \setuplayout [backspace=40mm] > \setuppagenumbering[location={header,inright}] > \setupmargindata[inmargin][location=left] > \setupmargindata[inmargin][style={\switchtobodyfont[ss,10pt]}] > \setupbodyfontenvironment[default][em=italic] > \definefallbackfamily [main

Re: [NTG-context] Italic in margins and footntes

2016-06-29 Thread Pablo Rodriguez
40mm] > \setuppagenumbering[location={header,inright}] > \setupmargindata[inmargin][location=left] > \setupmargindata[inmargin][style={\switchtobodyfont[ss,10pt]}] > \setupbodyfontenvironment[default][em=italic] > \definefallbackfamily [mainface] [serif] [New Athena Unicode] >

[NTG-context] Italic in margins and footntes

2016-06-29 Thread Jean-Pierre Delange
Dear ConTeXt wizards, I am currently writing a course. I need some notes in the left margin. I have written this in the preamble : \setuppapersize[A4] \setuplanguage[fr] \setuplayout [backspace=40mm] \setuppagenumbering[location={header,inright}] \setupmargindata[inmargin][location=left

Re: [NTG-context] \inright

2016-06-25 Thread John Kitzmiller
> John Kitzmiller <mailto:kitz at inradius.net > <https://mailman.ntg.nl/mailman/listinfo/ntg-context>> > 25. Juni 2016 um 16:20 > The following is no longer putting the “answer blank” in the right margin. > > \define\ansblank{\inright{\getnumber[itemgroup:itemize].

Re: [NTG-context] \inright

2016-06-25 Thread Wolfgang Schuster
John Kitzmiller <mailto:k...@inradius.net> 25. Juni 2016 um 16:20 The following is no longer putting the “answer blank” in the right margin. \define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrule}} \setupitemgroup [itemize] [n, style=bold,right=\ansblank] \setupitemgroup[i

[NTG-context] \inright

2016-06-25 Thread John Kitzmiller
The following is no longer putting the “answer blank” in the right margin. \define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrule}} \setupitemgroup [itemize] [n, style=bold,right=\ansblank] \starttext \startitemize[n] \item A question. \stopitemize \showframe \stoptext When I

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-20 Thread Jean-Pierre Delange
nelinenote[dNote][paragraph=yes] \def\ANote#1#2{#1\aNote{#1] #2}} \def\BNote#1#2{#1\bNote{#1] #2}} \def\CNote#1#2{#1\cNote{#1] #2}} \def\DNote#1#2{#1\dNote{#1] #2}} \setupalign[hz, hanging] \setuptolerance[strict] \setuplinenumbering[step=5, location=inright, di

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-16 Thread Jean-Pierre Delange
[hz, hanging] \setuptolerance[strict] \setuplinenumbering[step=5, location=inright, distance=1ex, align=center, width=0.5em] \definemargindata[Stephanus][location=inner, distance=2ex, style=\em] \setupbodyfont[mainface, 7.8pt] \starttext \start\fr % some text in French Définir

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-16 Thread Pablo Rodriguez
}} \def\DNote#1#2{#1\dNote{#1] #2}} \setupalign[hz, hanging] \setuptolerance[strict] \setuplinenumbering[step=5, location=inright, distance=1ex, align=center, width=0.5em] \definemargindata[Stephanus][location=inner, distance=2ex, style=\em] \setupbodyfont[mainfac

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-16 Thread Jean-Pierre Delange
[mainface] [serif] [GFS Didot] [preset=range:greek] \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \setuplayout[header=2cm, footer=2cm] \setupnotes[compress=yes] \setupnotations[alternative=serried] \definelinenote[aNote] \definelinenote[bNote][n=2] \define

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-16 Thread Jean-Pierre Delange
] #2}} \def\DNote#1#2{#1\dNote{#1] #2}} \setupalign[hz, hanging] \setuptolerance[strict] \setuplinenumbering[step=5, location=inright, distance=1ex, align=center, width=0.5em] \definemargindata[Stephanus][location=inner, distance=2ex, style=\em] \setupbodyfont[mainface, 7

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-15 Thread Pablo Rodriguez
e[cNote][n=3] \definelinenote[dNote][paragraph=yes] \def\ANote#1#2{#1\aNote{#1] #2}} \def\BNote#1#2{#1\bNote{#1] #2}} \def\CNote#1#2{#1\cNote{#1] #2}} \def\DNote#1#2{#1\dNote{#1] #2}} \setupalign[hz, hanging] \setuptolerance[strict] \setuplinenumbering[step=5, location=i

Re: [NTG-context] Regression with label inright placement

2015-10-26 Thread Wolfgang Schuster
fails with the labels shifted to reflect the temporarily narrowed text. Oeps indeed! It’s unrelated to the label mechanism. \showframe \starttext \startnarrower \inright[scope=local]{Right}\input ward \stopnarrower \blank \startnarrower \inright{Right}\input ward \stopnarrower \stoptext Wo

Re: [NTG-context] Regression with label inright placement

2015-10-26 Thread Rik Kabel
On 2015-10-26 07:03, Wolfgang Schuster wrote: \showframe \starttext \startnarrower \inright[scope=local]{Right}\input ward \stopnarrower \blank \startnarrower \inright{Right}\input ward \stopnarrower \stoptext Okay, unrelated to the label mechanism. However, for explicitly placed margin

[NTG-context] Regression with label inright placement

2015-10-25 Thread Rik Kabel
][alternative=inleft] \MyLabel[labelname1] This is some text after \in[labelname1]. \blank \MyLabel[labelname2] This is some text after \in[labelname2]. \blank \setuplabel[MyLabel][alternative=inright] \MyLabel[labelname1] This is some text after \in[labelname1

[NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2015-08-11 Thread Rik Kabel
The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails

[NTG-context] Label at start of paragraph suppresses indentation

2015-08-03 Thread Rik Kabel
A label at the start of a paragraph suppresses indentation. Should it? \setupindenting[yes,small] \definelabel[xx][text=,alternative=inright] Paragraph one. \xx{}Paragraph two. Paragraph\xx{} three. \stoptext -- Rik

[NTG-context] Problem with definelabel and footnotes

2015-07-27 Thread Rik Kabel
to what I have with definelabel. Is this a bug in the footnote typesetting, or a problem with my expectations? \setuppapersize[A6] \definelabel [Qi][text=,alternative=inright,headcolor=red] \definenote[pagenote] \setupnotation [pagenote][way=bypage,numberconversion=set 2

[NTG-context] caption alignment with floats in the margin

2015-04-27 Thread Brian R. Landy
,hanging]{My Title}{\framed[width=2.75in,height=1.0in]{!}} \placefigure[here,hanging]{My Title}{\framed[width=2.75in,height=1.0in]{!}} \placefigure[inright,hanging]{My Title}{\framed[width=2.75in,height=1.0in]{!}} \stoptext

Re: [NTG-context] Problem with definelabel in recent standalone

2014-01-16 Thread Hans Hagen
] [ text=, alternative=inright, way=bytext, headstyle=\ssxx, headcolor=darkgray, ] \starttext \Qb[labelname]This is some text

[NTG-context] Problem with definelabel in recent standalone

2014-01-15 Thread Rik Kabel
=, alternative=inright, way=bytext, headstyle=\ssxx, headcolor=darkgray, ] \starttext \Qb[labelname]This is some text. As in \in[labelname]. \stoptext The problem appears

Re: [NTG-context] Fwd: Re: outer floats on doublesided pages UNSOLVED

2013-10-02 Thread Tim Steenvoorden
Thanks Hans. I used "ininner" instead of "innermargin" and "inouter" instead of "outermargin" as keys.Is there a difference between "inright" and "rightmargin"?Cheers,Tim On 1 oktober 2013 at 22:35:29, Hans Hagen (pra...@wxs.nl

Re: [NTG-context] outer floats on doublesided pages UNSOLVED

2013-10-01 Thread Tim Steenvoorden
Hi Hans,Is it possible to fix the "inouter" and "ininner" directives too? "inright" and "inleft" work as expected.Cheers,Tim On 18 september 2013 at 10:51:29, Tim Steenvoorden (tim.steenvoor...@gmail.com) wrote: Thanks Hans!Cheers,Tim On 17 september 201

[NTG-context] Fwd: Re: outer floats on doublesided pages UNSOLVED

2013-10-01 Thread Hans Hagen
/2013 11:46 AM, Tim Steenvoorden wrote: Hi Hans, Is it possible to fix the inouter and ininner directives too? inright and inleft work as expected. afaik \setuppagenumbering [alternative=doublesided] \setuplayout [backspace=5cm, width=middle] \starttext \dorecurse{4

[NTG-context] Mixedcolumns maximum height for vertical rule: bug?

2013-09-24 Thread Thangalin
}, aftersection={\stopStyleColumns},] \def\StylePageNumber#1{% {\inframed[ frame=off, background=color, backgroundcolor=red, width=2em, height=2em, ]{#1}}} \setuppagenumbering[location=inright,command=\StylePageNumber,] \starttext\startchapter[title=Chapter] \startsection[title

[NTG-context] Different width of marginblocks and margindata

2013-05-03 Thread Marco Patzer
Hi, in the following example, why do marginblocks and margindata produce a different width when both are set to the same value? \setupmarginblocks [width=\rightmarginwidth] \setupmargindata [inright] [style=normal, width=\rightmarginwidth] \showframe \starttext \startmarginblock

[NTG-context] inright with location=hanging does not do what is expected.

2012-11-20 Thread Bill Meahan
text down alongside what follows instead of raising up to be even with what has preceded it. Minimal example: \starttext \input montgomery \inright[][align=right,location=hanging]{Shoulder Text} \input knuth \stoptext The Shoulder Text is aligned upward from the end of ward so

  1   2   3   >